package com.zzyl.nursing.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("设备详情响应模型")
public class DeviceDetailVo {
    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "物联网设备id")
    private String iotId;
    @ApiModelProperty(value = "设备名称")
    private String deviceName;
    @ApiModelProperty(value = "设备标识码")
    private String nodeId;
    @ApiModelProperty(value = "设备密钥")
    private String secret;
    @ApiModelProperty(value = "产品ID")
    private String productKey;
    @ApiModelProperty(value = "产品名称")
    private String productName;
    @ApiModelProperty(value = "位置类型 0 随身设备 1固定设备")
    private Integer locationType;
    @ApiModelProperty(value = "绑定位置,如果是随身设备为老人id，如果是固定设备为位置的最后一级id")
    private Long bindingLocation;
    @ApiModelProperty(value = "接入位置")
    private String remark;
    @ApiModelProperty(value = "设备状态，ONLINE：设备在线，OFFLINE：设备离线，ABNORMAL：设备异常，INACTIVE：设备未激活，FROZEN：设备冻结")
    private String deviceStatus;
    @ApiModelProperty(value = "激活时间,格式：yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime activeTime;
    @ApiModelProperty(value = "创建时间,格式：yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @ApiModelProperty(value = "创建人ID")
    private Long createBy;
    @ApiModelProperty(value = "创建人名称")
    private String creator;
}
